@extends('admin.common.zhyframe')

@section('head')
@endsection

@section('content')
<div class="wrapper mt-25">
	<div class="row">
		<div class="col-sm-12">
			<form class="form-horizontal" role="form" id="payInfoForm">
				<table class="table table-bordered table-hover">
					<thead>
						<tr>
							<th colspan="4">Ping++ 支付配置</th>
						</tr>
					</thead>
					<tr>
						<td class="text-right WW15">APP_ID：</td>
						<td><input type="text" value="@if($payinfo){{$payinfo->ping_appid}}@endif" name="ping_appid" class="form-control WW100"></td>
						<td class="text-right WW15">APP_KEY：</td>
						<td><input type="text" value="@if($payinfo){{$payinfo->ping_appkey}}@endif" name="ping_appkey" class="form-control WW100"></td>
					</tr>
					<tr>
						<th colspan="4">Ping++ 微信支付配置</th>
					</tr>
					<tr>
						<td class="text-right WW15">微信公众号 AppId：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->wx_pub_openid)){{$payinfo->ping_data->wx_pub_openid}}@endif" name="ping_param[wx_pub_openid]" class="form-control WW100"></td>
						<td class="text-right WW15">微信小程序 AppId：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->wx_lite_openid)){{$payinfo->ping_data->wx_lite_openid}}@endif" name="ping_param[wx_lite_openid]" class="form-control WW100"></td>
					</tr>
					<tr>
						<th colspan="4">Ping++ 易宝手机网页支付配置</th>
					</tr>
					<tr>
						<td class="text-right WW15">商品类别码：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->yeepay_product_category)){{$payinfo->ping_data->yeepay_product_category}}@endif" name="ping_param[yeepay_product_category]" class="form-control WW100"></td>
						<td class="text-right WW15">商户生成的用户账号唯一标识：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->yeepay_identity_id)){{$payinfo->ping_data->yeepay_identity_id}}@endif" name="ping_param[yeepay_identity_id]" class="form-control WW100"></td>
					</tr>
					<tr>
						<td class="text-right WW15">用户标识类型：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->yeepay_identity_type)){{$payinfo->ping_data->yeepay_identity_type}}@endif" name="ping_param[yeepay_identity_type]" class="form-control WW100"></td>
						<td class="text-right WW15">终端类型：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->yeepay_terminal_type)){{$payinfo->ping_data->yeepay_terminal_type}}@endif" name="ping_param[yeepay_terminal_type]" class="form-control WW100"></td>
					</tr>
					<tr>
						<td class="text-right WW15">终端 ID：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->yeepay_terminal_id)){{$payinfo->ping_data->yeepay_terminal_id}}@endif" name="ping_param[yeepay_terminal_id]" class="form-control WW100"></td>
						<td class="text-right WW15">用户移动终端的 UserAgent 信息：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->yeepay_user_ua)){{$payinfo->ping_data->yeepay_user_ua}}@endif" name="ping_param[yeepay_user_ua]" class="form-control WW100"></td>
					</tr>
					<tr>
						<th colspan="4">Ping++ 招行一网通支付配置</th>
					</tr>
					<tr>
						<td class="text-right WW15">客户协议号：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->cmb_p_no)){{$payinfo->ping_data->cmb_p_no}}@endif" name="ping_param[cmb_p_no]" class="form-control WW100"></td>
						<td class="text-right WW15">协议开通请求流水号：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->cmb_seq)){{$payinfo->ping_data->cmb_seq}}@endif" name="ping_param[cmb_seq]" class="form-control WW100"></td>
					</tr>
					<tr>
						<td class="text-right WW15">协议用户 ID：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->cmb_m_uid)){{$payinfo->ping_data->cmb_m_uid}}@endif" name="ping_param[cmb_m_uid]" class="form-control WW100"></td>
						<td class="text-right WW15">协议手机号：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->cmb_mobile)){{$payinfo->ping_data->cmb_mobile}}@endif" name="ping_param[cmb_mobile]" class="form-control WW100"></td>
					</tr>
					<tr>
						<td class="text-right WW15">立减金额（单位为：分）：</td>
						<td colspan="3"><input type="text" value="@if(isset($payinfo->ping_data->cmb_discount_amount)){{$payinfo->ping_data->cmb_discount_amount}}@endif" name="ping_param[cmb_discount_amount]" class="form-control WW100"></td>
					</tr>

					<tr>
						<th colspan="4">Ping++ 分期乐支付配置</th>
					</tr>
					<tr>
						<td class="text-right WW15">子商户编号：</td>
						<td colspan="3"><input type="text" value="@if(isset($payinfo->ping_data->fqlpay_merch_id)){{$payinfo->ping_data->fqlpay_merch_id}}@endif" name="ping_param[fqlpay_merch_id]" class="form-control WW100"></td>
					</tr>
					<tr>
						<th colspan="4">Ping++ 量化派支付配置</th>
					</tr>
					<tr>
						<td class="text-right WW15">手机号码：</td>
						<td colspan="3"><input type="text" value="@if(isset($payinfo->ping_data->qgbc_phone)){{$payinfo->ping_data->qgbc_phone}}@endif" name="ping_param[qgbc_phone]" class="form-control WW100"></td>
					</tr>
					<tr>
						<th colspan="4">Ping++ 么么贷支付配置</th>
					</tr>
					<tr>
						<td class="text-right WW15">手机号码：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->mmdpay_phone)){{$payinfo->ping_data->mmdpay_phone}}@endif" name="ping_param[mmdpay_phone]" class="form-control WW100"></td>
						<td class="text-right WW15">身份证号码：</td>
						<td><input type="text" value="@if(isset($payinfo->ping_data->mmdpay_id_no)){{$payinfo->ping_data->mmdpay_id_no}}@endif" name="ping_param[mmdpay_id_no]" class="form-control WW100"></td>
					</tr>
					<tr>
						<td class="text-right WW15">真实姓名：</td>
						<td colspan="3"><input type="text" value="@if(isset($payinfo->ping_data->mmdpay_name)){{$payinfo->ping_data->mmdpay_name}}@endif" name="ping_param[mmdpay_name]" class="form-control WW100"></td>
					</tr>
				</table>
				<div class="form-group mt-50">
					<div class="col-sm-4 col-sm-offset-5 ">
						<span class="btn btn-primary" onclick="layAjaxForm($('#payInfoForm').serialize(), '/admin/systemset/payset', 'post')">保&nbsp;&nbsp;存</span>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
@endsection

@section('footer')
<script src="{{asset('js/public.js')}}"></script>
<script src="{{asset('js/plugins/zhypic/uploadpic.js') }}"></script>
@endsection